package com.yuandian.api.management.feign;

import com.yuandian.api.customer_perception.po.ImportanceOperatorParams;
import com.yuandian.api.customer_perception.vo.ImportanceOperator;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.utils.PageDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "RemoteImportanceOperatorService", value = "bpm-management")
public interface RemoteImportanceOperatorService {

	@PostMapping("/importanceOperator/queryImportanceOperatorList")
	R<PageDataInfo> findByPager(@RequestBody ImportanceOperatorParams params);

	@GetMapping("/importanceOperator/getImportanceOperators")
	R<List<ImportanceOperator>> getImportanceOperatorList(@RequestParam(value = "name") String name,
														  @RequestParam(value = "status") String status,
														  @RequestParam(value = "operatorId") String operatorId);
}
